package org.dfl.core.data.types;

import org.dfl.messages.Messages;

/**
 * Type that can be merged with any other data type
 * @author Piotr Wlodarczyk
 *
 */
public class AnyType extends Type {
	public AnyType() {
		super();
	}

	@Override
	public boolean canMerge(Type t) {
		return true;
	}

	@Override
	protected boolean complain(Type t) {
		if(t == this) return true;
		t.mergeParentsWith(this);
		return true;
	}

	@Override
	public Type getCopy() {
		return new AnyType();
	}

	@Override
	public String save() {
		return Messages.AnyType_label;
	}

}
